
public class PointF {
	
	double x, y, z  = 0;
	double w = 1;

	
	public PointF(double x, double py, double z, double w) {
		this.x = x;
		this.y = py;
		this.z = z;
		
	}

	public void somaPonto(PointF ponto) {
		this.x += ponto.getX();
		this.y += ponto.getY();
		this.z += ponto.getZ();
	}
	
	public PointF() {
		this.w = 1;//sempre deve ser 1
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public double getW() {
		return w;
	}

	public void setW(double w) {
		this.w = 1;//por enquanto sempre deve ser 1
	}

	public void setZ(double z) {
		this.z = z;
	}

	public double getZ() {
		return z;
	}

	
}
